package com.apes.fn.server.servicePlan.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.apes.framework.jpa.DefaultPersistListener;
import com.apes.framework.jpa.Model;
import com.apes.framework.jpa.comment.Comment;
import com.apes.framework.jpa.generator.ApesGenerator;
import com.apes.framework.util.ApesConst;
import com.apes.framework.util.DateUtil;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.SelectBeforeUpdate;

import javax.persistence.*;
import java.util.Date;

/**
 * Creator: zouyc
 * CreateDate: 2020-09-08 9:14
 * Description:
 **/
@Getter
@Setter
@SelectBeforeUpdate
@DynamicInsert
@DynamicUpdate
@Entity
@EntityListeners(DefaultPersistListener.class)
@Table(name = EpcDeptSet.CONST_TABLE_NAME)
public class EpcDeptSet extends Model {
    public static final  String CONST_TABLE_NAME = "MAS_EPC_DEPT_SET";

    @Id
    @Column(name = "id", length = 30)
    @Comment("部门编码")
    @ApesGenerator(code = CONST_TABLE_NAME, name = "业务部门", padding = 3)
    private String id;  //部门编码
}